package cn.openea.perpartner.meily.aspect.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * User:zane_ysk
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AccessLimit {

    /**
     * 锁定时间
     */
    int lockTime() default 5;

    /**
     * 抛出异常时是否解锁
     */
    boolean unlockWhenThrowException() default false;

}
